package com.gitee.wsl.collections.iterator.api

/**
 * Defines an iterator that can be reset back to an initial state.
 *
 *
 * This interface allows an iterator to be repeatedly reused.
 *
 *
 * @param <E> the type of elements returned by this iterator.
 * @since 3.0
</E> */
interface ResettableIterator<E> : Iterator<E> {
    /**
     * Resets the iterator back to the position at which the iterator
     * was created.
     */
    fun reset()
}